﻿@using PagedList.Mvc
@model MyWorkBlogMVC.Models.EditUserPostWithCommentModel
@{
    ViewBag.Title = "UserPostWithComment";
}
@Styles.Render("~/Content/css")
<link href="~/Content/UserPages.css" rel="stylesheet" />
<div class="jumbotron">
    <img src="~/Content/blogme.PNG" />
</div>
<div class ="title"><h2>Edit/view your posted comments</h2></div>
<br/>
<div class="body_wrapper">
    
    <div class="content">
        <div><h1>Blogpost Tite: @Model.BlogPosts.PostTitle</h1></div>
        <div>@Model.BlogPosts.PostContent</div>
        <hr />
        @Html.ActionLink("Manage post content", "DeletePost", new {id=Model.BlogPosts.BlogPostId})
    </div>
    @Html.Partial("~/Views/User/_EditUserPostComment.cshtml", @Model)
</div>
@Html.PagedListPager(@Model.PostComments, page => Url.Action("EditUserPostWithComment", new { page }))

